package test;

public class HellSpring {
    //定义who属性，该属性的值将通过Spring框架进行设置
    private String who=null;

    public String getWho() {
        return who;
    }

    public void setWho(String who) {
        this.who = who;
    }

    /**
     * 打印方法，输出一句完整的问候
     */
    public void print(){
        System.out.println("Hello,"+this.getWho()+"!");
    }
}


